<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>登录</title>
<link href="http://s.maiyaole.com/css/passport/login.css" rel="stylesheet" type="text/css">
</head>
<style>
.form-control{
	height: 40px;
}
</style>
<body>
<div class="wrap head">      
    <div class="mod_tell">          <p>B2B医药电子商务平台</p>          <div class="tellnumber">400-007-0958</div>        </div>    </div> 
    <div class="wrap login_wrap">
    <h2 class="lg_title"><span class="fr">还不是B2B医药电子商务平台会员？<a href="/sso/register.action" class="blue_link">免费注册</a></span>Hi，欢迎登录！</h2>
    
    
	<form class="login-bd" id="loginForm" name="loginForm" action="<c:url value='/background/user/managerlogin.do'/>" method="post">
	<input type="hidden" value="B2B" name="SYSTEM_CODE" >
	<div class="reg_form reg_form_step2">
        <div class="reg_row">
                <!-- 用户名 -->
                <input type="text" name="username" id="TxtUserName" autocomplete="off" placeholder="接入商账号|管理员" class="form-control u_name" value="b2b_admin">
                <i id="pas_empty" class="i_empty" style="display:none;">不能为空</i>
                <span id="accountDesc" class="error"></span>
        </div>
         <div class="reg_row">      
                <!-- 密码 -->
                <input type="password" id="TxtPassword" name="password" autocomplete="off" placeholder="登录密码" class="form-control u_ps" value="111">
                
                <span id="pwd_desc" class="error"></span>
        </div>
        <div id="vcd_div" class="reg_row verify_box" style="display: none">
                <input type="text" maxlength="4" id="vcd" tabindex="-1" name="validCode" placeholder="验证码" class="form-control u_verify">
                <i id="vcd_tatus"></i>
                <img id="loginVcode" class="code verifyimg" onclick="this.src='/sso/getSecurityCode.action?t='+(new Date()).getTime()" alt="验证码">
				<a class="verifylink" id="changecode" tabindex="-1" href="javascript:void(0);">换一张</a>
				<span id="vcd_desc" class="error"></span>
				
                
        </div>
         <div class=""> 
                <!-- 壹药网协议-->
                <label class="checkbox"><input type="checkbox" value="1" name="rememberPwd" id="rememberPwd" tabindex="-1">
                    <span class="two_week" style="width: 150px;float: left;">两周内免登录</span>
                </label>
                <button type="button" id="btnSubmit" class="btn btn-primary" onclick="submit()">登录</button>
        </div>
        
    </div>
    </form>
    </div>
    
<script>
function submit(){
	var username = null;
	var password = null;
	username = document.getElementById('TxtUserName').value.replace(/\s+/g,"");
	password = document.getElementById('TxtPassword').value.replace(/\s+/g,"");
	
	if (!username) {
		alert("请输入用户名！");
		document.getElementById('TxtUserName').focus();
		return false;
	}

	if(username && !password){
		document.getElementById('TxtPassword').focus();
		return false;
	} 
	
	if (username && password) {
		document.getElementById('TxtPassword').value=password;
		document.forms.loginForm.submit();
		return false;
	}
}
</script>
 </body>
</html>